package com.irdstudio.apicenter.console.service.authenticate;

import java.sql.SQLException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.irdstudio.apicenter.console.dm.AppDic;
import com.irdstudio.apicenter.console.dm.AppDicDao;

@Service(value = "appDicService")
public class AppDicService {

	@Autowired
	private AppDicDao appDicDao;

	public int insertOne(AppDic appDic) throws SQLException,
			ClassNotFoundException {
		return appDicDao.save(appDic);
	}

	public AppDic queryAppTradePrivate(String recordKey) throws SQLException {
		return appDicDao.queryWithKeys(recordKey);
	}

	public int update(AppDic appDic) throws SQLException,
			ClassNotFoundException {
		return appDicDao.update(appDic);
	}

	public int delete(String recordKey) throws SQLException,
			ClassNotFoundException {
		return appDicDao.delete(recordKey);
	}

}
